# Maintainer: J. Peter Mugaas <jpmugaas@suddenlink.net>
# stolen from Archlinux
pkgname=re2c
pkgver=1.0.3
pkgrel=1
arch=(i686 x86_64)
depends=(gcc-libs)
pkgdesc='A tool for generating C-based recognizers from regular expressions'
url='http://re2c.org'
license=(GPL)
source=(https://github.com/skvadrik/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('cf56e0de3f335f6a22d3e8c06b8b450d858a4e7875ea1b01c9233e084b90cb52')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

check() {
  cd $pkgname-$pkgver
  make tests
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
